﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"  
Inherits="Nivdal.ListTransferListedPlayers" Title=" " StylesheetTheme="SkinFile" Codebehind="ListTransferListedPlayers.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, ListTransferListedPlayers_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <script language="javascript" type="text/javascript">
        function CompareClick(controlId) {
            var checkedCount = parseInt(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_CheckedCountHiddenField").value);
            if (document.getElementById(controlId).checked) {
                if (checkedCount >= 4) {
                    document.getElementById(controlId).checked = false;
                    alert(document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_CompareLimitReachedstringHiddenField").value);                    
                }
                else {
                    checkedCount++;
                }
            }
            else {
                checkedCount--;
            }
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_CheckedCountHiddenField").value = checkedCount;
        }
    
    
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="PageTitleLabel" runat="server" Text="<%$ Resources:Resource, ListTransferListedPlayers_PageNameLabel %>" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
        <asp:Hyperlink ID="BackToSearchPageLinkButton" runat="server" SkinID="GreenTitleHyperLink" 
        NavigateUrl="~/SearchTransferMarket.aspx" Text="<%$ Resources:Resource, ListTransferListedPlayers_BackToSearchPageLinkButton %>"></asp:Hyperlink> 
        &nbsp;
        <asp:HyperLink ID="SearchForCoachHL" runat="server" SkinID="GreenTitleHyperLink" Text="<%$ Resources:Resource, ListTransferListedPlayers_SearchForCoachHL %>" 
            NavigateUrl="~/SearchForCoach.aspx"></asp:HyperLink>
    </div>
    </div>
    <asp:HiddenField ID="CheckedCountHiddenField" runat="server"/>
    <asp:HiddenField ID="CompareLimitReachedstringHiddenField" runat="server" Value="<%$ Resources:Resource, ListTransferListedPlayers_CompareLimitReachedText %>"/>
    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
        <LayoutTemplate>
            <asp:Label ID="itemPlaceholder" runat="server" Text="Label"></asp:Label>
        </LayoutTemplate>
        <EmptyDataTemplate>
            <div class="basic_element">
            <div class="padding5">
                <asp:Label ID="NathingfoundLabel" runat="server" Text="<%$ Resources:Resource, ListTransferListedPlayers_NothingFoundLabel %>" SkinID="InfoLabel"></asp:Label> 
            </div>
            </div>                
        </EmptyDataTemplate>
        
        
         <ItemTemplate>
            <div class="basic_element">
            <div class="red_title_no_padding">
            <div class="grey_title_inside_red floater">
	            <asp:HyperLink ID="PlayerName" runat="server" Text='<%# Eval("Name") %>' NavigateUrl='<%# Eval("Id", "Player.aspx?Id={0}") %>' CssClass="team_name_white"></asp:HyperLink>
            </div>
            <div class="grey_title_triangle floater"></div>
                <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl='<%# "~/Images/Flags/" + Eval("NationalFlag") %>' CssClass="rounded_corners"
                NavigateUrl='<%# "~/Country.aspx?Id=" + Eval("CountryId") %>' ToolTip='<%# Eval("CountryName") %>'></asp:HyperLink>
                &nbsp;&nbsp;
                <asp:Label ID="BestPositionsLabel" runat="server" Text='<%# Eval("BestPositions") %>' CssClass="white_title" ToolTip='<%# Eval("BestPositionsToolTip") %>'></asp:Label>
                &nbsp;&nbsp;
                <asp:Label ID="BidDeadlineTitleLabel" runat="server" Text="<%$ Resources:Resource, ListTransferListedPlayers_BidDeadlineTitleLabel %>" CssClass="white_title"></asp:Label>
                <asp:Label ID="BidDeadlineLabel" runat="server" Text='<%# Eval("BidDeadline") %>' CssClass="white_title"/>
                  &nbsp;&nbsp;           
                <asp:Label ID="AgeYearsLabel" runat="server" Text='<%# Eval("Age") %>'  CssClass="white_title"/>
            
            </div>
            <div class="padding5">
                <table style="width:100%;" cellpadding="2" cellspacing="0">  
                <tr>
                    
                    <td style="width:25%">
                        <asp:Label ID="TeamIdTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Team+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Hyperlink ID="TeamLinkButton" runat="server" Text='<%# Eval("TeamName") %>' NavigateUrl='<%# Eval("TeamId", "TeamHomePage.aspx?TeamId={0}") %>'
                         CssClass="higlight_text"></asp:Hyperlink>
                    </td>
                    <td style="width:25%">
                        <asp:Label ID="FitnessTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_Fitness %>" SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="FitnessLabel" runat="server" Text='<%# Eval("Fitness", "{0}%") %>' SkinID="InfoLabel" /> 
                    
                    </td>
                    <td style="width:25%">
                        <asp:Label ID="CharismaTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Charisma + ":"%>'  SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="CharismaLabel" runat="server" Text='<%# Eval("Charisma") %>' SkinID="InfoLabel" /> 
                    </td>
                    <td style="width:25%">
                        <asp:Label ID="ExperienceTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Experience + ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="ExperienceLabel" runat="server" Text='<%# Eval("Experience") %>' SkinID="InfoLabel" />
                    </td>
                </tr>
                <tr>
                    
                    <td>
                        <asp:Label ID="StrongFootTitleLabel" runat="server" Text='<%# Resources.Resource.Global_StrongFoot+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="StrongFootLabel" runat="server" Text='<%# Eval("StrongFoot") %>' SkinID="InfoLabel" />
                    </td>
                    <td>
                        <asp:Label ID="CurrentBidTitleLabel" runat="server" Text='<%# Resources.Resource.Global_CurrentBid+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="CurrentBidLabel" runat="server" Text='<%# int.Parse(Eval("CurrentBid").ToString()).ToString("N0") %>' CssClass="higlight_text"/>
                    </td>
                    <td colspan="2">
                        <asp:Label ID="BiddingTeamTitleLabel" runat="server" Text="<%$ Resources:Resource, ListTransferListedPlayers_BiddingTeamTitleLabel %>" SkinID="InfoLabel"></asp:Label>
                        <asp:HyperLink ID="BiddingTeamHyperLink" runat="server" CssClass="higlight_text" Text='<%# Eval("BiddingTeamName") %>'
                         NavigateUrl='<%# Eval("BiddingTeam", "~/TeamHomePage.aspx?TeamId={0}") %>' ></asp:HyperLink>
                    </td>                
                </tr>
                <tr><td colspan="4">&nbsp;</td></tr>
                <tr>
                    
                    <td>
                        <asp:Label ID="InstinctsTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Instincts + ":"%>' SkinID="InfoLabel" ></asp:Label>
                        <asp:Label ID="InstinctsLabel" runat="server" Text='<%# Eval("Instincts") %>' CssClass='<%# (bool)Eval("TrainedInstincts") ? "higlight_text" : "reg_text" %>'
                         ToolTip='<%# Resources.Resource.Global_Instincts + " " + Eval("Instincts").ToString() + ". " + ((bool)Eval("TrainedInstincts") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>' />
                    </td>
                    <td>
                        <asp:Label ID="StaminaTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Stamina+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="StaminaLabel" runat="server" Text='<%# Eval("Stamina") %>' CssClass='<%# (bool)Eval("TrainedStamina") ? "higlight_text" : "reg_text" %>' 
                         ToolTip='<%# Resources.Resource.Global_Stamina + " " + Eval("Stamina").ToString() +  ". " + ((bool)Eval("TrainedStamina") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>' /> 
                    </td>
                    <td>
                        <asp:Label ID="HeadingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Heading + ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="HeadingLabel" runat="server"  Text='<%# Eval("Heading") %>' CssClass='<%# (bool)Eval("TrainedHeading") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_Heading + " " + Eval("Heading").ToString() +  ". " + ((bool)Eval("TrainedHeading") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>'/>
                    </td>
                    <td>
                        <asp:Label ID="ShortPassingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_ShortPassing+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="ShortPassingLabel" runat="server" Text='<%# Eval("ShortPassing") %>' CssClass='<%# (bool)Eval("TrainedShortPassing") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_ShortPassing + " " + Eval("ShortPassing").ToString() + ". " + ((bool)Eval("TrainedShortPassing") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>'/>
                    </td>
                </tr>
                <tr>
                    
                    <td>
                        <asp:Label ID="GoalKeepingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_GoalKeeping + ":"%>' SkinID="InfoLabel"></asp:Label> 
                        <asp:Label ID="GoalKeepingLabel" runat="server" Text='<%# Eval("GoalKeeping") %>' CssClass='<%# (bool)Eval("TrainedGoalKeeping") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_GoalKeeping + " " + Eval("GoalKeeping").ToString() + ". " + ((bool)Eval("TrainedGoalKeeping") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                    <td>
                        <asp:Label ID="PowerTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Power + ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="PowerLabel" runat="server" Text='<%# Eval("Power") %>'  CssClass='<%# (bool)Eval("TrainedPower") ? "higlight_text" : "reg_text" %>' 
                         ToolTip='<%# Resources.Resource.Global_Power + " " + Eval("Power").ToString() + ". " + ((bool)Eval("TrainedPower") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                    <td>
                        <asp:Label ID="QuicknessTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Quickness+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="QuicknessLabel" runat="server" Text='<%# Eval("Quickness") %>' CssClass='<%# (bool)Eval("TrainedQuickness") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_Quickness + " " + Eval("Quickness").ToString() + ". " + ((bool)Eval("TrainedQuickness") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                    <td>
                        <asp:Label ID="LongPassingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_LongPassing + ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="LongPassingLabel" runat="server" Text='<%# Eval("LongPassing") %>' CssClass='<%# (bool)Eval("TrainedLongPassing") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_LongPassing + " " + Eval("LongPassing").ToString() + ". " + ((bool)Eval("TrainedLongPassing") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                </tr>
                <tr>
                    
                    <td>
                        <asp:Label ID="PositioningTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Positioning + ":"%>' SkinID="InfoLabel"></asp:Label> 
                        <asp:Label ID="PositioningLabel" runat="server" Text='<%# Eval("Positioning") %>' CssClass='<%# (bool)Eval("TrainedPositioning") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_Positioning + " " + Eval("Positioning").ToString() + ". " + ((bool)Eval("TrainedPositioning") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>' />
                    </td>
                    <td>
                        <asp:Label ID="TacklingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Tackling+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="TacklingLabel" runat="server" Text='<%# Eval("Tackling") %>' CssClass='<%# (bool)Eval("TrainedTackling") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_Tackling + " " + Eval("Tackling").ToString() + ". " + ((bool)Eval("TrainedTackling") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                    <td>
                        <asp:Label ID="TechniqueTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Technique+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="TechniqueLabel" runat="server" Text='<%# Eval("Technique") %>' CssClass='<%# (bool)Eval("TrainedTechnique") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_Technique + " " + Eval("Technique").ToString() + ". " + ((bool)Eval("TrainedTechnique") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                    <td>
                        <asp:Label ID="ShootingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Shooting+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <asp:Label ID="ShootingLabel" runat="server" Text='<%# Eval("Shooting") %>' CssClass='<%# (bool)Eval("TrainedShooting") ? "higlight_text" : "reg_text" %>'  
                         ToolTip='<%# Resources.Resource.Global_Shooting + " " + Eval("Shooting").ToString() + ". " + ((bool)Eval("TrainedShooting") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Panel ID="ComparePanel" runat="server" Visible='<%# IsPremiumUser() %>' >                   
                            <asp:CheckBox ID="CompareCheckBox" runat="server" Checked="false" 
                            Text="<%$ Resources:Resource, Global_CheckForCompare %>"
                            onclick="javascript:CompareClick(this.getAttribute('id'))" CssClass="NewsItemStyle" />
                            &nbsp;|&nbsp;
                            <asp:LinkButton ID="CompareLinkButton" runat="server" SkinID="GridLinkButton" OnClick="CompareSelected"
                             Text="<%$ Resources:Resource, Global_CompareSelected %>" ></asp:LinkButton>
                            <asp:HiddenField ID="PlayerIdHiddenField" runat="server" Value='<%# Eval("Id") %>' />
                         </asp:Panel>
                    </td>
                </tr>
               </table>
            </div>
            </div>            
        </ItemTemplate>
        
    </asp:ListView>
    
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="Nivdal_SearchTransferMarket_newer" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</asp:Content>

